﻿<h2 class="tab-cont-h2">
        <a href="javascript:;">运单管理</a> > <span>装货列表</span>
    </h2>
<input type="hidden" id="warestorelistpage" value="1" />
<div class="tab-container" id="waybillStoreListCon">
    
</div>
<nav class="page-nav">
    <ul class="pagination" id="waybillStoreListdemo"></ul>
</nav>
 <!--备注弹框-->
    <div class="modal fade model remarkmodel" id="remarkModel" tabindex="-1" role="dialog">
        <div class="modal-dialog" role="document">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                    <h4 class="modal-title" id="exampleModalLabel">添加备注</h4>
                </div>
                <div class="modal-body">
                    <form>
                        <div class="form-group">
                            <textarea class="form-control textarea" id="message-text" placeholder="请控制在15字以内。。。"></textarea>
                        </div>
                    </form>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn sure" id="remarkSubmit">提 交</button>
                    <button type="button" class="btn cancel" data-dismiss="modal">取 消</button>
                </div>
            </div>
        </div>
    </div>

  
  


<script type="text/javascript" src="jqPaginator.js" charset="UTF-8"></script>
<script src="waybill_storelist.js"></script>
<script type="text/template" id="waybillStoreListTpl">
    <table class="table table-hover table-responsive">
        <tr class="thead">
            <td class="td1">标书编号</td>
            <td class="td2">订单编号</td>
            <td class="td3">中标物流</td>
            <td class="td4">中标价</td>
            <td class="td5">目的地</td>
            <td class="td6">司机名字</td>
            <td class="td6">司机电话</td>
            <td class="td7">状态</td>
            <td class="td8">操作</td>
        </tr>
        <tr class="trh7">
            <td colspan="10">&nbsp;</td>
        </tr>
        <%_.each(obj,function(item,i){%>
        <tr class="tbody tbody-<%=(i%2 == 0 ? 1:2)%>">
            <td>
                <a href="javascript:;" class="bid-no" data-id="<%=item.bid_id%>"><%=item.bid_no%></a>
            </td>
            <td class="tdtextal"><%=item.order_num%></td>
              <td><%=item.wuliu_name%></td>
            <td><%=item.price%></td>
            <td class="tdtextal"><%=item.end_city_name%></td>
            <td class="tdtextal"><%=item.driver_name%></td>
            <td><%=item.driver_phone%></td>
           
            <td><%if(item.load_state==1){%>
                等待取货
                <%}else if(item.load_state==10){%>
                    未取货
                <%}else if(item.load_state==20){%>
                    已取货
               <%}else if(item.load_state==30){%>
                    到货确认
                <%}else if(item.load_state==40){%>
                    回单确认 
                <%}else if(item.load_state==50){%>
                    运单结束 
                <%}else if(item.load_state==100){%>
                    关闭 
                <%}%>
                </td>
            <td><a href="javascript:;"  class="hasnopickModel"  data-bid="<%=item.bid_id%>" data-loadno="<%=item.load_no%>">已取货</a><a href="#" data-toggle="modal" data-target="#remarkModel"  data-id="<%=item.id%>">备注</a></td>
        </tr>
        <%})%>
    </table>
    <nav class="page-nav">
        <ul class="pagination" id="demo">
        </ul>
    </nav>
</script>